package cn.itcast.bos.service.base.impl;

import cn.itcast.bos.dao.base.FixedAreaRepository;
import domain.base.FixedArea;
import cn.itcast.bos.service.base.FixedAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2017/7/14/014.
 */
@Service
@Transactional
public class FixedAreaServiceImpl implements FixedAreaService {

    @Autowired
    FixedAreaRepository fixedAreaRepository;

    @Override
    public Page<FixedArea> findAll(Specification<FixedArea> spec, Pageable pageable) {
        return fixedAreaRepository.findAll(spec,pageable);
    }


    @Override
    public void save(FixedArea entity) {

    }

    @Override
    public void associateCourier(FixedArea model, Integer courierId, Integer takeTimeId) {

    }
}
